package com.business.sys.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 系统配置类 实体类
 * @author generator
 * @date 2019-11-29 13:55:01
 * @since 1.0
 */
@TableName(value = "sys_config")
public class Config extends Model<Config> {

	private static final long serialVersionUID = 1L;

    // columns START

	@TableId(value = "id",type=IdType.AUTO)
	private Integer id; 

	/**
	 * 配置编码
	 */
	private String code; 

	/**
	 * 参数值，支持不同格式代码做装换
	 */
	private String value; 

	/**
	 * 描述
	 */
	private String describe; 
	// columns END

	@Override
	protected Serializable pkVal() {
		return id;
	}

	public Integer getId() {
		return id;
	}

    public void setId(Integer id) {
    	this.id = id;
    }
	public String getCode() {
		return code;
	}

    public void setCode(String code) {
    	this.code = code;
    }
	public String getValue() {
		return value;
	}

    public void setValue(String value) {
    	this.value = value;
    }
	public String getDescribe() {
		return describe;
	}

    public void setDescribe(String describe) {
    	this.describe = describe;
    }
	
	@Override
	public String toString() {
		String log = ""; 
		log += "[id:" + getId() + "]";
		log += "[code:" + getCode() + "]";
		log += "[value:" + getValue() + "]";
		log += "[describe:" + getDescribe() + "]";
		return log;
	}
}